this.BX=this.BX||{};this.BX.UI=this.BX.UI||{};(function(t,e,s){"use strict";var r;var i=function(t){babelHelpers.inherits(s,t);function s(t){var e;babelHelpers.classCallCheck(this,s);e=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(s).call(this,t));e.setEventNamespace("BX.UI.ShortView");e.setShortView(t.isShortView);e.node=null;return e}babelHelpers.createClass(s,[{key:"renderTo",value:function t(s){if(!e.Type.isDomNode(s)){throw new Error("UI ShortView: HTMLElement not found")}e.Dom.append(this.render(),s)}},{key:"render",value:function t(){var s=this.getShortView()==="Y"?"checked":"";this.node=e.Tag.render(r||(r=babelHelpers.taggedTemplateLiteral(['\n\t\t\t<div class="tasks-scrum__switcher--container tasks-scrum__scope-switcher">\n\t\t\t\t<label class="tasks-scrum__switcher--label">\n\t\t\t\t<div class="tasks-scrum__switcher--label-text">\n\t\t\t\t\t','\n\t\t\t\t</div>\n\t\t\t\t<input type="checkbox" class="tasks-scrum__switcher--checkbox" ','>\n\t\t\t\t<span class="tasks-scrum__switcher-cursor"></span>\n\t\t\t\t</label>\n\t\t\t</div>\n\t\t'])),e.Loc.getMessage("UI_SHORT_VIEW_LABEL"),s);e.Event.bind(this.node,"change",this.onChange.bind(this));return this.node}},{key:"setShortView",value:function t(e){this.shortView=e==="Y"?"Y":"N"}},{key:"getShortView",value:function t(){return this.shortView}},{key:"onChange",value:function t(){var e=this.node.querySelector('input[type="checkbox"]');this.setShortView(e.checked?"Y":"N");this.emit("change",this.getShortView())}}]);return s}(s.EventEmitter);t.ShortView=i})(this.BX.UI.ShortView=this.BX.UI.ShortView||{},BX,BX.Event);
//# sourceMappingURL=short.view.bundle.map.js